﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Xsl;
using System.IO;

namespace Noea.Utils
{
	public static class XmlToHtml
	{
		public static Stream convert(XmlDocument xd)
		{
			XslCompiledTransform xslTransform = new XslCompiledTransform();
			xslTransform.Load("style.xsl");

			MemoryStream stream = new MemoryStream();
			xslTransform.Transform(xd, null, stream);

			return stream;
		}
	}
}
